﻿using System;

namespace Mono.Cecil
{
	// Token: 0x020000B3 RID: 179
	public class ModuleReference : IMetadataScope, IMetadataTokenProvider
	{
		// Token: 0x170001E6 RID: 486
		// (get) Token: 0x06000763 RID: 1891 RVA: 0x000232B0 File Offset: 0x000214B0
		// (set) Token: 0x06000764 RID: 1892 RVA: 0x0000497E File Offset: 0x00002B7E
		public string Name
		{
			get
			{
				return this.name;
			}
			set
			{
				this.name = value;
			}
		}

		// Token: 0x170001E7 RID: 487
		// (get) Token: 0x06000765 RID: 1893 RVA: 0x000232C8 File Offset: 0x000214C8
		public virtual MetadataScopeType MetadataScopeType
		{
			get
			{
				return MetadataScopeType.ModuleReference;
			}
		}

		// Token: 0x170001E8 RID: 488
		// (get) Token: 0x06000766 RID: 1894 RVA: 0x000232DC File Offset: 0x000214DC
		// (set) Token: 0x06000767 RID: 1895 RVA: 0x00004988 File Offset: 0x00002B88
		public MetadataToken MetadataToken
		{
			get
			{
				return this.token;
			}
			set
			{
				this.token = value;
			}
		}

		// Token: 0x06000768 RID: 1896 RVA: 0x00004992 File Offset: 0x00002B92
		internal ModuleReference()
		{
			this.token = new MetadataToken(TokenType.ModuleRef);
		}

		// Token: 0x06000769 RID: 1897 RVA: 0x000049AC File Offset: 0x00002BAC
		public ModuleReference(string name) : this()
		{
			this.name = name;
		}

		// Token: 0x0600076A RID: 1898 RVA: 0x000232B0 File Offset: 0x000214B0
		public override string ToString()
		{
			return this.name;
		}

		// Token: 0x04000254 RID: 596
		private string name;

		// Token: 0x04000255 RID: 597
		internal MetadataToken token;
	}
}
